package com.medical.common;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015-08-18.
 */
public class TreeNode extends CheckBox {

    private String url;

    private String icon;

    private String parentId;

    private String targetId;

    private String moveType;

    private Boolean open = true;

    private Boolean drop = true;//不允许拖放

    private Boolean drap = true;//不允许拖拽

    private List<TreeNode> children = new ArrayList<TreeNode>();

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getMoveType() {
        return moveType;
    }

    public void setMoveType(String moveType) {
        this.moveType = moveType;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Boolean getDrop() {
        return drop;
    }

    public void setDrop(Boolean drop) {
        this.drop = drop;
    }

    public Boolean getDrap() {
        return drap;
    }

    public void setDrap(Boolean drap) {
        this.drap = drap;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public Boolean getHasChildren(){
        return children!=null && children.size()>0;
    }
}
